<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

<head>
</head>
<body>
<ui:composition template="/templates/template.xhtml">
	<ui:define name="title">Cassandraview main page</ui:define>
	<ui:define name="body">
		<a4j:outputPanel layout="block" style="margin-left: 10px;" ajaxRendered="true">
			<rich:messages />
			<h:outputText value="#{detailsPage.columnFamily}" />
			<rich:collapsiblePanel header="Keyspace info" 
			                       switchType="client" 
			                       expanded="false" style="margin-bottom: 10px;" 
			                       rendered="#{not empty detailsPage.keyspace}">
				<rich:dataTable value="#{detailsPage.keyspaceDetails}" var="property">
					<rich:column>
						<f:facet name="header"><h:outputText value="Name" /></f:facet>
						#{property.name}
					</rich:column>
					<rich:column>
						<f:facet name="header"><h:outputText value="Value" /></f:facet>
						#{property.value}
					</rich:column>
				</rich:dataTable>
			</rich:collapsiblePanel>
			<rich:dataTable style="width:100%;" value="#{detailsPage.CFPropertyList}" var="property" rendered="#{not empty detailsPage.columnFamily}">
				<rich:column>
					<f:facet name="header"><h:outputText value="Name" /></f:facet>
					#{property.name}
				</rich:column>
				<rich:column>
					<f:facet name="header"><h:outputText value="Value" /></f:facet>
					#{property.value}
				</rich:column>
			</rich:dataTable>
		</a4j:outputPanel>			
	</ui:define>
</ui:composition>
</body>
</html>
